package cn.mazexal.examapi.models.enums;

import lombok.Getter;

@Getter
public enum FinNotificationUrlEnum {

    WECHAT_PAY_NOTIFY("WECHAT_PAY_NOTIFY"),
    ALI_PAY_NOTIFY("ALI_PAY_NOTIFY"),
    APPLE_NOTIFY("APPLE_NOTIFY");

    private String url;
    FinNotificationUrlEnum(String url) {
        this.url = url;
    }
    public static String getUrl(String name) {
        for (FinNotificationUrlEnum value : FinNotificationUrlEnum.values()) {
            if (value.name().equals(name)) {
                return value.url;
            }
        }
        return null;
    }

}
